Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix UB in city-tiles flood fill #78238

Merged
merged 1 commit into from
Nov 30, 2024

Conversation

ehughsbaird
Copy link
Contributor

Summary

None

Purpose of change

Comparing iterators from different containers is UB and not intended behavior anyways.
Fixes #77881

Testing

Compiles.

@github-actions github-actions bot added Map / Mapgen Overmap, Mapgen, Map extras, Map display [C++] Changes (can be) made in C++. Previously named `Code` json-styled JSON lint passed, label assigned by github actions astyled astyled PR, label is assigned by github actions labels Nov 29, 2024
@akrieger
Copy link
Member

clang-tidy is right.

Comparing iterators from different containers is UB and not intended
behavior anyways.
@ehughsbaird ehughsbaird force-pushed the fix-city-tiles-predicate branch from 1f154f1 to 2308b04 Compare November 29, 2024 18:38
@github-actions github-actions bot added the BasicBuildPassed This PR builds correctly, label assigned by github actions label Nov 29, 2024
@Maleclypse Maleclypse merged commit 447eda8 into CleverRaven:master Nov 30, 2024
20 of 26 checks passed
@ehughsbaird ehughsbaird deleted the fix-city-tiles-predicate branch November 30, 2024 04:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
astyled astyled PR, label is assigned by github actions BasicBuildPassed This PR builds correctly, label assigned by github actions [C++] Changes (can be) made in C++. Previously named `Code` json-styled JSON lint passed, label assigned by github actions Map / Mapgen Overmap, Mapgen, Map extras, Map display
Projects
None yet
Development

Successfully merging this pull request may close these issues.

bad comparison in overmap::flood_fill_city_tiles
3 participants